package com.his.his_system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 我的排班
 * @TableName dzm_his_scheduling
 */
@TableName(value ="dzm_his_scheduling")
public class DzmHisScheduling implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long schedulingId;

    /**
     * 医生ID
     */
    private Integer physicianid;

    /**
     * 科室ID
     */
    private Integer departmentId;

    /**
     * 诊所ID
     */
    private Integer companyId;

    /**
     * 本周开始时间
     */
    private String startTimeThisWeek;

    /**
     * 本周结束时间
     */
    private String endTimeThisWeek;

    /**
     * 创建时间
     */
    private Integer createTime;

    /**
     * 更新时间
     */
    private Integer updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Long getSchedulingId() {
        return schedulingId;
    }

    /**
     * 
     */
    public void setSchedulingId(Long schedulingId) {
        this.schedulingId = schedulingId;
    }

    /**
     * 医生ID
     */
    public Integer getPhysicianid() {
        return physicianid;
    }

    /**
     * 医生ID
     */
    public void setPhysicianid(Integer physicianid) {
        this.physicianid = physicianid;
    }

    /**
     * 科室ID
     */
    public Integer getDepartmentId() {
        return departmentId;
    }

    /**
     * 科室ID
     */
    public void setDepartmentId(Integer departmentId) {
        this.departmentId = departmentId;
    }

    /**
     * 诊所ID
     */
    public Integer getCompanyId() {
        return companyId;
    }

    /**
     * 诊所ID
     */
    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    /**
     * 本周开始时间
     */
    public String getStartTimeThisWeek() {
        return startTimeThisWeek;
    }

    /**
     * 本周开始时间
     */
    public void setStartTimeThisWeek(String startTimeThisWeek) {
        this.startTimeThisWeek = startTimeThisWeek;
    }

    /**
     * 本周结束时间
     */
    public String getEndTimeThisWeek() {
        return endTimeThisWeek;
    }

    /**
     * 本周结束时间
     */
    public void setEndTimeThisWeek(String endTimeThisWeek) {
        this.endTimeThisWeek = endTimeThisWeek;
    }

    /**
     * 创建时间
     */
    public Integer getCreateTime() {
        return createTime;
    }

    /**
     * 创建时间
     */
    public void setCreateTime(Integer createTime) {
        this.createTime = createTime;
    }

    /**
     * 更新时间
     */
    public Integer getUpdateTime() {
        return updateTime;
    }

    /**
     * 更新时间
     */
    public void setUpdateTime(Integer updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DzmHisScheduling other = (DzmHisScheduling) that;
        return (this.getSchedulingId() == null ? other.getSchedulingId() == null : this.getSchedulingId().equals(other.getSchedulingId()))
            && (this.getPhysicianid() == null ? other.getPhysicianid() == null : this.getPhysicianid().equals(other.getPhysicianid()))
            && (this.getDepartmentId() == null ? other.getDepartmentId() == null : this.getDepartmentId().equals(other.getDepartmentId()))
            && (this.getCompanyId() == null ? other.getCompanyId() == null : this.getCompanyId().equals(other.getCompanyId()))
            && (this.getStartTimeThisWeek() == null ? other.getStartTimeThisWeek() == null : this.getStartTimeThisWeek().equals(other.getStartTimeThisWeek()))
            && (this.getEndTimeThisWeek() == null ? other.getEndTimeThisWeek() == null : this.getEndTimeThisWeek().equals(other.getEndTimeThisWeek()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSchedulingId() == null) ? 0 : getSchedulingId().hashCode());
        result = prime * result + ((getPhysicianid() == null) ? 0 : getPhysicianid().hashCode());
        result = prime * result + ((getDepartmentId() == null) ? 0 : getDepartmentId().hashCode());
        result = prime * result + ((getCompanyId() == null) ? 0 : getCompanyId().hashCode());
        result = prime * result + ((getStartTimeThisWeek() == null) ? 0 : getStartTimeThisWeek().hashCode());
        result = prime * result + ((getEndTimeThisWeek() == null) ? 0 : getEndTimeThisWeek().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", schedulingId=").append(schedulingId);
        sb.append(", physicianid=").append(physicianid);
        sb.append(", departmentId=").append(departmentId);
        sb.append(", companyId=").append(companyId);
        sb.append(", startTimeThisWeek=").append(startTimeThisWeek);
        sb.append(", endTimeThisWeek=").append(endTimeThisWeek);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}